package org.glut.cloud.repairRecordManage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.glut.cloud.repairRecordManage.service.IMaintenanceRecordsGetService;
import org.glut.cloud.repairRecordManage.entity.MaintenanceRecords;
import org.glut.cloud.repairRecordManage.mapper.MaintenanceRecordsGetMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务实现类
 *
 * @author stubborn
 * @since 2024-08-13 17:11
 */
@Service
public class MaintenanceRecordsGetServiceImpl extends ServiceImpl<MaintenanceRecordsGetMapper, MaintenanceRecords> implements IMaintenanceRecordsGetService {

    @Override
    public List<MaintenanceRecords> getRecordsByUserNo(Integer userNo) {
        LambdaQueryWrapper<MaintenanceRecords> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(MaintenanceRecords::getUserNo, userNo);
        return this.list(queryWrapper);
    }


}